//
//  UIViewController+TYAlertController_PACK.h
//  dyss_v2
//
//  Created by LXF on 16/1/30.
//  Copyright © 2016年 First Facility. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XXAlertView.h"
#import "XXAlertAction.h"
#import "TYAlertController.h"

typedef void(^alertActionBlock)(XXAlertActionType index,XXAlertAction *action);

@interface UIViewController (ShowAlertView_PACK)

@property (nonatomic, weak) TYAlertController *alertController;

-(void)dismissXXAlertView;

/// 显示普通 AlertView (不开启 模糊 mask)
/// 默认两个摁钮,[取消,确定]
/// @param title             title
/// @param message           message
/// @param handler           handler
-(NSArray *)showAlertViewNoBEWithTitle:(NSString *)title message:(NSString *)message  handler:(alertActionBlock)handler;

/// 显示普通 AlertView
/// 默认两个摁钮,[取消,确定]
/// @param title             title
/// @param message           message
/// @param handler           handler
-(NSArray *)showAlertViewWithTitle:(NSString *)title message:(NSString *)message  handler:(alertActionBlock)handler;

/// 显示普通 AlertView (不开启 模糊 mask)
///
/// @param title             title
/// @param message           message
/// @param cancleString      cancleString
/// @param destructiveString destructiveString
/// @param handler           handler
-(NSArray *)showAlertViewNoBEWithTitle:(NSString *)title message:(NSString *)message cancle:(NSString *)cancleString destructive:(NSString *)destructiveString  handler:(alertActionBlock)handler;

/// 显示普通 AlertView,
///
/// @param title             title
/// @param message           message
/// @param cancleString      cancleString
/// @param destructiveString destructiveString
/// @param handler           handler
-(NSArray *)showAlertViewWithTitle:(NSString *)title message:(NSString *)message cancle:(NSString *)cancleString destructive:(NSString *)destructiveString  handler:(alertActionBlock)handler;

/// 显示普通 AlertView (MAX)
///
/// @param title             title
/// @param message           message
/// @param cancleString      cancleString
/// @param defaultString     defaultString
/// @param destructiveString destructiveString
/// @param openBE            openBE 开启 mask 模糊
/// @param handler           handler
-(NSArray *)showAlertViewWithTitle:(NSString *)title message:(NSString *)message cancle:(NSString *)cancleString default:(NSString *)defaultString destructive:(NSString *)destructiveString openBlurEffect:(BOOL) openBE  handler:(alertActionBlock)handler;

@end
